package com.mimiwang.school.controller;

import com.mimiwang.common.utils.ResponseUtil;
import com.mimiwang.school.service.ISchoolAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/5/1 19:50
 */

@RestController
@RequestMapping("/area")
public class SchoolAreaController {

    @Autowired
    ISchoolAreaService schoolAreaService;
    

    @GetMapping("/list")
    String getAreaListByCampusId(long campusId){
        return ResponseUtil.successJSONData(schoolAreaService.selectAreaListByCampusId(campusId));
    }
}
